home *** CD-ROM | disk | FTP | other *** search
- #menulib
- Submenu OS
- Entry OS_ATARIST[1]Atari ST
- Entry OS_ATARIXL[2]Atari XL/XE
- Entry OS_MSDOS[3]MS-DOS
- Entry OS_OS2[4]OS/2
- Entry OS_WIN95[5]Windows 95
- Entry [X]All file groups
-
- SubMenu OS_ATARIST
- Entry [1]Atari
- Entry [2]General
- Entry FAN[3]FAN-files
- Entry [4]NeST-files
-
- SubMenu OS_ATARIXL
- Entry [1]DOS 2.5 Utils
- Entry [2]Graphics
- Entry [3]Sound & Music
- Entry [4]Games
- Entry [5]Wordprocessors
- Entry [6]Hardware
-
- SubMenu OS_MSDOS
- Entry [1]DOS Utils
- Entry [2]General
- Entry [3]Textfiles
- Entry [4]Games
- Entry [5]Communication
- Entry [6]Graphics
- Entry [7]Virus Software
- Entry [8]Memory managers
- Entry [9]Sound & Music
-
- SubMenu OS_OS2
- Entry [1]Drivers
- Entry [2]Hardware
- Entry [3]General
- Entry [4]Textfiles
- Entry [5]Communication
- Entry [6]Graphics
- Entry [7]Miscellaneous
-
- SubMenu OS_WIN95
- Entry [1]Drivers
- Entry [2]Hardware
- Entry [3]General
- Entry [4]Textfiles
- Entry [5]Communication
- Entry [6]Graphics
- Entry [7]Miscellaneous
-
- #endlib
- /* ------------------------------------------------------------------
- * Filemenu -> Submenu -> Submenu example for use with different
- * (in this case) operating systems.
- *
- * If you take a look at this piece of script you'll think:
- *
- * What's the reason of the Break ?
- *
- * It's required because otherwise it can result when you make
- * a choice from the submenu that Octopus does find the next
- * case as 'valid' with a popup from another submenu.
- */
- :FB_os
- IfAscii EchoKey Endif
- DrawMenu OS Gosub draw_ascii_msg
- DoMenu OS
- SelectChoice
- Case 1 Gosub FB_os_atarist Break
- Case 2 Gosub FB_os_atarixl Break
- Case 3 Gosub FB_os_msdos Break
- Case 4 Gosub FB_os_os2 Break
- Case 5 Gosub FB_os_win95 Break
-
- /* If you don't want the next 'X' option in your
- * submenu then you can also remove the 2 lines with
- * code after the Common statement. This is needed
- * now because we want a screen redraw after the filelist.
- *
- * When the common statement is removed, you can also
- * remove above 'Break' commands.
- */
- Case X SetFileGroup FULL /* Set Full group */
- FileListing
-
- Common Gosub draw_bbsinfo
- DrawMenu File
- EndSelect
- EnddoChoice MenuBarKeys
-
- /* Remove the submenu */
- IfChoice CursLeft
- RemoveMenu OS
- ClrChoice
- Endif
-
- /* If the submenus are bigger in length (entrys)
- * then you have to comment out the next piece
- * of code.
- *
- * IfChoice CursRight
- * RemoveMenu OS
- * Endif
- */
- Return
-
-
- /* -------------------------------------------------------------------
- * Submenu handling for the different OS-es
- */
- :FB_os_atarist
- DrawMenu OS_ATARIST Gosub draw_ascii_msg
- DoMenu OS_ATARIST
- SelectChoice
- Case 1 Break
- Case 2 Break
- #ifdef FANFILES
- Case 3 SetFilegroup FANFILES Gosub FB_os_atari_fanfiles Break
- #else
- Case 3 Cls Send "This BBS does not have files from the FAN filenetwork\r\n\n"
- GetKey
- #endif
- Case 4 Break
- Common Gosub draw_bbsinfo
- DrawMenu File
- EndSelect
- EnddoChoice MenuBarKeys
-
- /* Remove the submenu */
- IfChoice CursLeft
- RemoveMenu OS_ATARIST
- ClrChoice
- Endif
- Return
-
- /* ------------------------------------------------------------------*/
- :FB_os_atarixl
- DrawMenu OS_ATARIXL Gosub draw_ascii_msg
- DoMenu OS_ATARIXL
- SelectChoice
- Case 1 /* DOS 2.5 Utils */
- Case 2 /* ... */
- Case 3
- Case 4
- Case 5 /* Wordprocessors */
- Case 6 /* Hardware */
- Common Gosub draw_bbsinfo
- DrawMenu File
- EndSelect
- EnddoChoice MenuBarKeys
-
- /* Remove the submenu */
- IfChoice CursLeft
- RemoveMenu OS_ATARIXL
- ClrChoice
- Endif
- Return
-
- :FB_os_msdos
- DrawMenu OS_MSDOS Gosub draw_ascii_msg
- DoMenu OS_MSDOS
- SelectChoice
- Case 1 /* DOS Utils */
- Case 2 /* ... */
- Case 3
- Case 4
- Case 5
- Case 6
- Case 7
- Case 8
- Case 9 /* Sound & Music */
- Common Gosub draw_bbsinfo
- DrawMenu File
- EndSelect
- EnddoChoice MenuBarKeys
-
- /* Remove the submenu */
- IfChoice CursLeft
- RemoveMenu OS_MSDOS
- ClrChoice
- Endif
- Return
-
- :FB_os_os2
- DrawMenu OS_OS2 Gosub draw_ascii_msg
- DoMenu OS_OS2
- SelectChoice
- Case 1 /* Drivers */
- Case 2 /* ... */
- Case 3
- Case 4
- Case 5
- Case 6
- Case 7 /* Miscellaneous */
- Common Gosub draw_bbsinfo
- DrawMenu File
- EndSelect
- EnddoChoice MenuBarKeys
-
- /* Remove the submenu */
- IfChoice CursLeft
- RemoveMenu OS_OS2
- ClrChoice
- Endif
- Return
-
- :FB_os_win95
- DrawMenu OS_WIN95 Gosub draw_ascii_msg
- DoMenu OS_WIN95
- SelectChoice
- Case 1 /* Drivers */
- Case 2 /* ... */
- Case 3
- Case 4
- Case 5
- Case 6
- Case 7 /* Miscellaneous */
- Common Gosub draw_bbsinfo
- DrawMenu File
- EndSelect
- EnddoChoice MenuBarKeys
-
- /* Remove the submenu */
- IfChoice CursLeft
- RemoveMenu OS_WIN95
- ClrChoice
- Endif
- Return
-
-